package model;

import java.io.Serializable;

import javax.sound.sampled.AudioFormat;

public class AudioFormatWrapper implements Serializable {

	private float sampleRate = 16000;
	private int sampleSizeInBits = 16;
	private int channels = 1;
	private boolean signed = true;
	private boolean bigEndian = true;
	
	public AudioFormatWrapper(){
		
	}
	
	public AudioFormatWrapper(float sampleRate, int sampleSizeInBits,
			int channels, boolean signed, boolean bigEndian) {
		super();
		this.sampleRate = sampleRate;
		this.sampleSizeInBits = sampleSizeInBits;
		this.channels = channels;
		this.signed = signed;
		this.bigEndian = bigEndian;
	}
	
	public AudioFormat getAudioFormat(){
		return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);
	}
	
	public boolean isValid(){
		//TODO verif des champs
		return true;
	}
	
	
	
}
